﻿@charset "utf-8";
@import "reset";
@import 'mixin';
@import 'variable';
@import "media";

//公用
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
body { font: $global-font;color:#333;}
.w-750{
  width: 100%;  
  min-width: 320px;
  margin: 0 auto;
}
.clearfix { @include clearfix; }
.fl { float: left; }
.fr { float: right; }
.nofloat { float: none; }
.ell { @include ell; }
.line-wrap{
  word-wrap: normal;
  word-break: break-all;
  white-space: normal;
}
.strong { font-weight: bold; }
.uppercase { text-transform: uppercase; }
.border-radius { border: 0; }
.cursor-pointer { cursor: pointer; }
a { text-decoration: none; color: #333; }
.overflow-y { overflow-x: hidden; overflow-y: auto; }
.button { background-color: nth($color, 2); color: #fff; border-color: transparent; cursor: pointer; }
.hidden { display: none; }
.none { display: none !important; }
.show { display: block; }
.fn-hide { display: none; }
.fn-show { display: block !important; }
.p-relative {position: relative;}
.p-absolute {position: absolute;}
.ovh { overflow: hidden;}
.ova { overflow: auto;}
.img-center{display: block;margin: 0 auto;}
.vis-hide { visibility: hidden; }
.no-selected { @include userSelect; }
.tac { text-align: center; }
.tal { text-align: left!important;}
.tar { text-align: right; }
.taj {text-align: justify; }
.inline-block{ display: inline-block;}
/*常用字体大小*/
/*常用字体大小*/
@for $i from 12 through 48 {
  .f#{$i} { font-size: rem(1px * $i); } 
}
/*常用行高*/
.lh1 { line-height: 1;}
.lh15 { line-height: 1.5;}
.lh18 { line-height: 1.8;}
.lh20 { line-height: 2;}
.lh22 { line-height: 2.2;}
.lh24 { line-height: 2.4;}
.lh28 { line-height: 2.8;}
.lh30 { line-height: 3.0;}
/*文字修饰*/
.fb { font-weight: bold;}
.tdl { text-decoration: underline !important;}
.tdt{text-decoration: line-through;}

/*常用颜色*/
.fc0 { color: #000!important;}
.fcw { color: #FFF;}
.fc3 { color: #333!important;}
.fc34 { color: #343434!important;}
.fc4 { color: #444!important;}
.fc6 { color: #666!important;}
.fc8 { color: #888;}
.fc9 { color: #999!important;}
.fcc { color: #ccc;}
.fcd { color: #ddd;}
.fcbd {color: #bdbdbd;}
.fc-b8{color: #b8b8b8;}
.fc-a6{color: #a6a6a6!important;}
.diy_color { color: $diyColor!important;}
.diy_color-grab { color: $diyColor-grab!important;}
.color-price{color: $colorPrice !important;}
.base-color { color: #1d50a2;}
.fcred{ color: red !important;}
.fcsc{color:#ff5b00!important; }
/*常用背景*/
.bgf0{ background:#f0f0f0 !important;}
.bgf9{ background:#f9f9f9 !important;}
.bgf8{ background:#F8FBFF !important;}
.bgf7{ background:#f7f7f7 !important;}
.bgf5{ background:#f5f5f5 !important;}
.bgf3{ background:#f3f3f3 !important;}
.bgfc{ background:#fcfcfc !important;}
.bgfw{ background:#fff !important;}
.bgfb{ background:#fbfbfb !important;}
.bgfa{ background:#fafafa !important;}
.bg999{ background:#999 !important;}
.bg666{ background-color: #666 !important;}
.diy_background{ background-color: $diyColor!important;}
.diy_background-grab{ background-color: $diyColor-grab!important;}
/* 常用数值 */
@for $i from 0 through 20 {
  .mt#{$i*5} { margin-top: rem(5px * $i); }
  .mr#{$i*5} { margin-right: rem(5px * $i); }
  .mb#{$i*5} { margin-bottom: rem(5px * $i); }
  .ml#{$i*5} { margin-left: rem(5px * $i); }  

  .pt#{$i*5} { padding-top: rem(5px * $i) !important; }
  .pr#{$i*5} { padding-right: rem(5px * $i) !important; }
  .pb#{$i*5} { padding-bottom: rem(5px * $i) !important; }
  .pl#{$i*5} { padding-left: rem(5px * $i)!important; }  
}
/* 边框线 */
.bor-bottom {
  border-bottom: 1px solid #ddd;
}
.bor-bottom-dashed {
  border-bottom: 1px dashed #ddd!important;
}
.bor-top {
  border-top: 1px solid #ddd;
}
.bor-left {
  border-left: 1px solid #ddd;
}
.bor-right {
  border-right: 1px solid #ddd;
}
.bor-none {
  border: none!important;
}
.border {
  border: 1px solid #ddd;
}
.diy_border{
	border: 1px solid $diyColor!important;
}
.diy_border_bottom{
  border-bottom: 1px solid $diyColor!important;
}
.diy_border-grab{
	border: 1px solid $diyColor-grab!important;
}
.diy_border_bottom-grab{
  border-bottom: 1px solid $diyColor-grab!important;
}
.diy_border_bottom-yj{
  border-bottom: 4px solid $diyColor!important;
}

.of-hidden {
    height:100%;
    overflow:hidden;
}
.btn-code-disabled{
  background: #999 !important;
  cursor: not-allowed !important;
  color: #fff!important;
}
.layer-mask{
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
}
.vm{
  vertical-align: middle;
}
.ti{
  text-indent: 0.46rem;
}

.icon-right{
  display: inline-block;
  background-size:80% 90%;
  background-repeat:no-repeat;
  width: .25rem;
  height:.4rem;
  background-image:url(/assets/images/right-icon.png);
}

.icon-down{
  display: inline-block;
  background-size:contain;
  background-repeat:no-repeat;
  width: .25rem;
  height:.16rem;
  background-image:url(/assets/images/arrow-down.png);
}
.icon-up{
  display: inline-block;
  background-size:contain;
  background-repeat:no-repeat;
  width: .25rem;
  height:.16rem;
  background-image:url(/assets/images/arrow-up.png);
}


.page-btn-1{
    text-align: center;
    margin: 0 auto;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    color: #fff;
    width: 70%;
    border-radius: rem(10px);
    background-color: $diyColor;
    
}

.page-btn-2{
    text-align: center;
    margin: 0 auto;
    color: $diyColor;
    width: 70%;
    border-radius: rem(10px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    background-color: #fff;
    border: 1px solid $diyColor;
}

.page-btn-3{
  text-align: center;
  margin: 0 auto;
  color: $diyColor;
  width: 70%;
  border-radius: rem(10px);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  background-color: #fff;
  border: 1px solid $diyColor;
}

.tiaokuan {
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  visibility: visible;
  width: 100%;
  background-color: #fff;
  z-index: 999;
  overflow-y: scroll;
  .top {
    border-bottom: 1px solid #ccc;
    .title {
      float: left;
      font-weight: bold;
      font-size: 0.3rem;
    }
    .close-tag {
      float: right;
    }
  }
  .content {
    padding: 0.2rem;
  }
}
.am-checkbox.am-checkbox-checked .am-checkbox-inner {
  border-color: $diyColor!important; 
  background: $diyColor!important; 
}
.am-tabs-default-bar-tab-active {
  color: $diyColor!important; 
}
.am-tabs-default-bar-underline {
  border: 1px solid $diyColor!important;   
}
.am-modal-button-group-h .am-modal-button {  
  color: $diyColor!important; 
}
.am-button-ghost {
  color:  $diyColor!important; 
  border: 1px solid  $diyColor!important; 
}
.am-button-primary {
  background-color: $diyColor!important;
  border: 1px solid transparent!important; 
}
.am-button-primary:before{
  border: 1px solid $diyColor!important;
}
.am-button-ghost:before {  
  border: 1px solid  transparent!important; 
}